package com.ssy.lingxi.member.merchant.api.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员权益获取方式枚举
 */
public enum MemberRightAcquireWayEnum {

    /**
     * 交易获取 - 1
     */
    ACQUIRE_BY_TRADE(1, "交易获取");

    private Integer code;

    MemberRightAcquireWayEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

    public static String getCodeMsg(Integer code) {
        return LanguageHolder.getName(MemberRightAcquireWayEnum.class, code);
    }
}
